package com.jz.learning.demo.DEMO_02.pojo;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class ServiceB {

	Log log = LogFactory.getLog(ServiceB.class.getName());

	@Autowired
	private ServiceA serviceA;

	public ServiceB(){
		log.info("serviceB created");
	}

	public void showB(){
		log.info("show B");
	}
}
